package com.gongzhiyun.springboot3test.service;

import com.gongzhiyun.springboot3test.base.PageBean;
import com.gongzhiyun.springboot3test.base.R;
import com.gongzhiyun.springboot3test.vo.ParamsDel;
import com.gongzhiyun.springboot3test.vo.ParamsDetailMessageData;
import com.gongzhiyun.springboot3test.vo.ParamsQueryMessage;
import com.gongzhiyun.springboot3test.vo.QueryMessageData;

import java.util.List;

public interface TbMessageService {
    R<String> addMessage(ParamsQueryMessage message);

    R<List<QueryMessageData>> queryMessage(ParamsQueryMessage message, PageBean pageBean);

    R<List<QueryMessageData>> queryMessageByUid(Integer uid, PageBean pageBean);

    R<String> praise(Integer mid);

    R<String> delete(ParamsDel del);

    R<ParamsDetailMessageData> detailMessage(Integer mid, PageBean pageBean);
}
